﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BankService
{
    [Serializable]
    public class Account
    {
        public string AccountId
        {
            get;
            set;
        }

        //allow pending amount > AccountBalance
        public bool AllowPending
        {
            get;
            set;
        }

        public decimal AccountBalance
        {
            get;
            set;
        }

        public decimal PendingAmount
        {
            get;
            set;
        }

        public Account(string accountId)
        {
            AccountId = accountId;

            AllowPending = true;

            AccountBalance = 0.0M;
            PendingAmount = 0.0M;
        }

    }

}
